# $Id: PKGBUILD 176326 2013-01-30 00:25:00Z bisson $
# Contributor: Jan de Groot <jgc@archlinux.org>
# Maintainer: Gaetan Bisson <bisson@archlinux.org>

pkgname=xorg-xev
pkgver=1.2.1
pkgrel=1
pkgdesc='Print contents of X events'
url='http://xorg.freedesktop.org/'
arch=('i686' 'x86_64')
license=('custom')
depends=('libx11' 'libxrandr')
makedepends=('xorg-util-macros' 'xproto')
source=("http://xorg.freedesktop.org/archive/individual/app/xev-${pkgver}.tar.bz2")
sha1sums=('7ae6233ccfd8f500d547093291cc2de4f2b8fbaa')

groups=('xorg-apps' 'xorg')

build() {
	cd "${srcdir}/xev-${pkgver}"
	./configure --prefix=/usr
	make
}

package() {
	cd "${srcdir}/xev-${pkgver}"
	make DESTDIR="${pkgdir}" install
	install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}
